<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>新闻</title>
    <link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="static/css/wall.css" />
  	<style type="text/css">
		.box {
			border: 1px solid #DDDDDD;
			padding: 5px;
		}
	</style>
  </head>
  
  <body>
  	<%@ include file="top.jsp" %>
  	<div class="container">
	  	<div class="row" style="padding-top:60px">
	  		<jsp:include page="left.jsp">
				<jsp:param value="news" name="tag"/>
			</jsp:include>
	  		<div class="span6">
	  			<c:if test="${param.code == 1001 }">
					<div class="alert alert-error">
						<button class="close" data-dismiss="alert" type="button">×</button>
						 发布的内容不能为空
			    	</div>
				</c:if>
				<c:if test="${param.code == 1002 }">
					<div class="alert alert-success">
						<button class="close" data-dismiss="alert" type="button">×</button>
						 发布成功
			    	</div>
				</c:if>
				<div>
					<div>
	  					<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0px 0px;">
							<li><i class="icon-th"></i>你在想什么？</li>
						</ul>
					</div>
					<div class="wall">
						<form action="news.jspx?m=save" method="post">
							<textarea style="width:415px" name="content" id=""  cols="30" rows="3"></textarea>
							<button type="submit" class="btn btn-primary">发布</button>
						</form>
					</div>
				</div>
				<div>
					<ul class="breadcrumb" style="margin-top:20px; margin-bottom:0px;border-radius:3px 3px 0px 0px;">
						<li><i class="icon-th"></i>信息交流</li>
					</ul>
					<div class="wall">
						<c:forEach items="${requestScope.newsList}" var="news">
							<div class="row">
								<div class="span1">头像</div>
								<div class="span4">
									<blockquote>
										${news.content }
										<small>
											${news.member.name }发布于 ${news.time }<br/>
											<a title="删除" href="idea.jspx?m=commentdelete&&commentid=${news.id}&&id=${news.id}">
												<i class="icon-trash"></i>
											</a>
										</small>
									</blockquote>
								</div>	
							</div>
						</c:forEach>
					</div>
				</div>
			</div>
			<div class="span3 ">
				<ul class="nav nav-list">
					<li>我的任务</li>
					<li class="divider"></li>
					<c:forEach items="${requestScope.taskList}" var="task">
						<li><a href=""></a>${task.name }</li>
					</c:forEach>
				</ul>
			</div> 
		</div>
	</div>
	<script type="text/javascript" src="static/jquery/jquery.js"></script>
	<script type="text/javascript" src="static/bootstrap/js/bootstrap.min.js"></script>		 
 </body>
</html>
